<#include "/admin/public.html">
<style type="text/css">

</style>
<div class="uk-layui-form">
	<form class="layui-form uk-form" id="wd-form">
	  	<input type="hidden" name="id" id="id" value="${wd.id!''}">
	     <div class="withdrawal-set">
	     	<div class="layui-form-item">
	           <label class="layui-form-label">账户姓名</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.user.username!''}">
	           </div>
		    </div>
		    <div class="layui-form-item">
	           <label class="layui-form-label">账户类型</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.personalpayment.paymenttype!''}">
	           </div>
		    </div>
		    <div class="layui-form-item">
	           <label class="layui-form-label">账户号码</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.personalpayment.paymentno!''}">
	           </div>
		    </div>
		    <div class="layui-form-item">
	           <label class="layui-form-label">账户预留手机号</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.user.mobile!!''}">
	           </div>
		    </div>
		  	<div class="layui-form-item">
	           <label class="layui-form-label">提现金额</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.amount!?string('0.00')}">
	           </div>
		    </div>
		    <div class="layui-form-item">
	           <label class="layui-form-label">账户总收入</label>
	           <div class="layui-input-inline">
	           		<#if wd.user.totalIncome??>
	           			<input type="text" disabled class="layui-input" value="${wd.user.totalIncome!?string('0.00')}">
	           			<#else>
	           			<input type="text" disabled class="layui-input" value="0.00">
	           		</#if>
	           </div>
		    </div>
		    <div class="layui-form-item">
	           <label class="layui-form-label">提现时间</label>
	           <div class="layui-input-inline">
	               <input type="text" disabled class="layui-input" value="${wd.applyTime!?string("yyyy-MM-dd")}">
	           </div>
		    </div>
	  	 </div>
	     <div class="layui-form-button">
	         <div class="layui-button-block">
	             <a class="layui-btn" onclick="wdSubmit();">立即提交</a>
	         </div>
	     </div>
 	</form>
</div>
<script>

layui.use(['form','laydate','layedit'], function() {
    var form = layui.form();
    form.render(); //更新全部
});
function wdSubmit(){
	layer.open({
		icon: 3,
		title:'申请提现',
		skin: 'layui-layer-rim',
		btn: ['确定','取消'],
		content: '请再次核对信息是否无误！',
		yes: function(index, layero) {
			layer.closeAll();
			$("#wd-form").attr("action","/admin/wdeposit/save.html");
			$("#wd-form").submit();
		}
	});
}



</script>